package com.ys.entity.business;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TP_ShopRegisterPhaseRecord", catalog="Id")
public class TpShopRegisterPhaseRecord extends BaseEntity<TpShopRegisterPhaseRecord> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="OperateCompanyId", nameJava="operateCompanyId", typeDataBase="bigint")
	private Long operateCompanyId;
	@YsField(nameDataBase="PhaseNum", nameJava="phaseNum", typeDataBase="int")
	private Integer phaseNum;
	@YsField(nameDataBase="WorkContent", nameJava="workContent", typeDataBase="text")
	private String workContent;
	@YsField(nameDataBase="StartTime", nameJava="startTime", typeDataBase="datetime")
	private Date startTime;
	@YsField(nameDataBase="PlanEndTime", nameJava="planEndTime", typeDataBase="datetime")
	private Date planEndTime;
	@YsField(nameDataBase="RealityEndTime", nameJava="realityEndTime", typeDataBase="datetime")
	private Date realityEndTime;
	@YsField(nameDataBase="RealityWorkTime", nameJava="realityWorkTime", typeDataBase="decimal")
	private BigDecimal realityWorkTime;
	@YsField(nameDataBase="OverTime", nameJava="overTime", typeDataBase="decimal")
	private BigDecimal overTime;
	@YsField(nameDataBase="AmazonShopId", nameJava="amazonShopId", typeDataBase="bigint")
	private Long amazonShopId;
	@YsField(nameDataBase="HeadUserId", nameJava="headUserId", typeDataBase="varchar")
	private String headUserId;
	@YsField(nameDataBase="WorkTime", nameJava="workTime", typeDataBase="decimal")
	private BigDecimal workTime;
	@YsField(nameDataBase="PhaseName", nameJava="phaseName", typeDataBase="varchar")
	private String phaseName;
	@YsField(nameDataBase="SetType", nameJava="setType", typeDataBase="tinyint")
	private Integer setType;
	@YsField(nameDataBase="SetId", nameJava="setId", typeDataBase="bigint")
	private Long setId;
	@YsField(nameDataBase="ParentId", nameJava="parentId", typeDataBase="bigint")
	private Long parentId;
	@YsField(nameDataBase="PhaseType", nameJava="phaseType", typeDataBase="tinyint")
	private Integer phaseType;
	@YsField(nameDataBase="ParentNode", nameJava="parentNode", typeDataBase="varchar")
	private String parentNode;
	@YsField(nameDataBase="EndUser", nameJava="endUser", typeDataBase="varchar")
	private String endUser;
	@YsField(nameDataBase="EndSort", nameJava="endSort", typeDataBase="int")
	private Integer endSort;
	@YsField(nameDataBase="IsShow", nameJava="isShow", typeDataBase="tinyint")
	private Integer isShow;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TpShopRegisterPhaseRecord setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getOperateCompanyId() {
		return operateCompanyId;
	}
	public TpShopRegisterPhaseRecord setOperateCompanyId(Long operateCompanyId) {
		this.operateCompanyId = operateCompanyId;
		return this;
	}
	public Integer getPhaseNum() {
		return phaseNum;
	}
	public TpShopRegisterPhaseRecord setPhaseNum(Integer phaseNum) {
		this.phaseNum = phaseNum;
		return this;
	}
	public String getWorkContent() {
		return workContent;
	}
	public TpShopRegisterPhaseRecord setWorkContent(String workContent) {
		this.workContent = workContent;
		return this;
	}
	public Date getStartTime() {
		return startTime;
	}
	public TpShopRegisterPhaseRecord setStartTime(Date startTime) {
		this.startTime = startTime;
		return this;
	}
	public Date getPlanEndTime() {
		return planEndTime;
	}
	public TpShopRegisterPhaseRecord setPlanEndTime(Date planEndTime) {
		this.planEndTime = planEndTime;
		return this;
	}
	public Date getRealityEndTime() {
		return realityEndTime;
	}
	public TpShopRegisterPhaseRecord setRealityEndTime(Date realityEndTime) {
		this.realityEndTime = realityEndTime;
		return this;
	}
	public BigDecimal getRealityWorkTime() {
		return realityWorkTime;
	}
	public TpShopRegisterPhaseRecord setRealityWorkTime(BigDecimal realityWorkTime) {
		this.realityWorkTime = realityWorkTime;
		return this;
	}
	public BigDecimal getOverTime() {
		return overTime;
	}
	public TpShopRegisterPhaseRecord setOverTime(BigDecimal overTime) {
		this.overTime = overTime;
		return this;
	}
	public Long getAmazonShopId() {
		return amazonShopId;
	}
	public TpShopRegisterPhaseRecord setAmazonShopId(Long amazonShopId) {
		this.amazonShopId = amazonShopId;
		return this;
	}
	public String getHeadUserId() {
		return headUserId;
	}
	public TpShopRegisterPhaseRecord setHeadUserId(String headUserId) {
		this.headUserId = headUserId;
		return this;
	}
	public BigDecimal getWorkTime() {
		return workTime;
	}
	public TpShopRegisterPhaseRecord setWorkTime(BigDecimal workTime) {
		this.workTime = workTime;
		return this;
	}
	public String getPhaseName() {
		return phaseName;
	}
	public TpShopRegisterPhaseRecord setPhaseName(String phaseName) {
		this.phaseName = phaseName;
		return this;
	}
	public Integer getSetType() {
		return setType;
	}
	public TpShopRegisterPhaseRecord setSetType(Integer setType) {
		this.setType = setType;
		return this;
	}
	public Long getSetId() {
		return setId;
	}
	public TpShopRegisterPhaseRecord setSetId(Long setId) {
		this.setId = setId;
		return this;
	}
	public Long getParentId() {
		return parentId;
	}
	public TpShopRegisterPhaseRecord setParentId(Long parentId) {
		this.parentId = parentId;
		return this;
	}
	public Integer getPhaseType() {
		return phaseType;
	}
	public TpShopRegisterPhaseRecord setPhaseType(Integer phaseType) {
		this.phaseType = phaseType;
		return this;
	}
	public String getParentNode() {
		return parentNode;
	}
	public TpShopRegisterPhaseRecord setParentNode(String parentNode) {
		this.parentNode = parentNode;
		return this;
	}
	public String getEndUser() {
		return endUser;
	}
	public TpShopRegisterPhaseRecord setEndUser(String endUser) {
		this.endUser = endUser;
		return this;
	}
	public Integer getEndSort() {
		return endSort;
	}
	public TpShopRegisterPhaseRecord setEndSort(Integer endSort) {
		this.endSort = endSort;
		return this;
	}
	public Integer getIsShow() {
		return isShow;
	}
	public TpShopRegisterPhaseRecord setIsShow(Integer isShow) {
		this.isShow = isShow;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TpShopRegisterPhaseRecord setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TpShopRegisterPhaseRecord setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TpShopRegisterPhaseRecord setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TpShopRegisterPhaseRecord tpShopRegisterPhaseRecord(
		Long operateCompanyId,
		Integer phaseNum,
		String workContent,
		Date startTime,
		Date planEndTime,
		Date realityEndTime,
		BigDecimal realityWorkTime,
		BigDecimal overTime,
		Long amazonShopId,
		String headUserId,
		BigDecimal workTime,
		String phaseName,
		Integer setType,
		Long setId,
		Long parentId,
		Integer phaseType,
		String parentNode,
		String endUser,
		Integer endSort,
		Integer isShow,
		Integer status
			) {
		TpShopRegisterPhaseRecord entity = new TpShopRegisterPhaseRecord();
		entity.setOperateCompanyId(operateCompanyId);
		entity.setPhaseNum(phaseNum);
		entity.setWorkContent(workContent);
		entity.setStartTime(startTime);
		entity.setPlanEndTime(planEndTime);
		entity.setRealityEndTime(realityEndTime);
		entity.setRealityWorkTime(realityWorkTime);
		entity.setOverTime(overTime);
		entity.setAmazonShopId(amazonShopId);
		entity.setHeadUserId(headUserId);
		entity.setWorkTime(workTime);
		entity.setPhaseName(phaseName);
		entity.setSetType(setType);
		entity.setSetId(setId);
		entity.setParentId(parentId);
		entity.setPhaseType(phaseType);
		entity.setParentNode(parentNode);
		entity.setEndUser(endUser);
		entity.setEndSort(endSort);
		entity.setIsShow(isShow);
		entity.setStatus(status);
		return entity;
	}
}